package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_enter_name_add", autoSave = true)
public class LogEnterNameActivityAdd {

    @FieldTypeAnnotation(isIndex = true)
    int activityId;

    @FieldTypeAnnotation(isIndex = true)
    long userId;

    @FieldTypeAnnotation(desc = "ip")
    String ip;

    @FieldTypeAnnotation(desc = "选择地区")
    int zoneId;

    @FieldTypeAnnotation(desc = "匹配模式：1， 1v1; 2: 2 v 2")
    int pkMode;

    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogEnterNameActivityAdd(int activityId, long userId, String ip, int zoneId, int pkMode) {
        this.activityId = activityId;
        this.userId = userId;
        this.ip = ip;
        this.zoneId = zoneId;
        this.pkMode = pkMode;
        this.logTime = new Date();
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getZoneId() {
        return zoneId;
    }

    public void setZoneId(int zoneId) {
        this.zoneId = zoneId;
    }

    public int getPkMode() {
        return pkMode;
    }

    public void setPkMode(int pkMode) {
        this.pkMode = pkMode;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }
}
